
/* Copyright 2018 JDCLOUD.COM

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http:#www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

JDCLOUD SSL数字证书管理 API
提供SSL数字证书，证书申购记录管理相关信息接口

OpenAPI spec version: v1
Contact: 

NOTE: This class is auto generated by the jdcloud code generator program.
*/

#import <Foundation/Foundation.h>

#import <JDCloudOCSDKSsl/SslExecutor.h>


/// 更新证书 [MFA enabled]
@implementation  SslUpdateCertExecutor

-(id) initWithJDCloudClient:(SslClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/sslCert:updateCert";
    return self;
}
@end

/// 查看证书详情
@implementation  SslDescribeCertExecutor

-(id) initWithJDCloudClient:(SslClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/sslCert/{certId}";
    return self;
}
@end

/// 上传证书
@implementation  SslUploadCertExecutor

-(id) initWithJDCloudClient:(SslClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/sslCert:upload";
    return self;
}
@end

/// 删除证书 [MFA enabled]
@implementation  SslDeleteCertsExecutor

-(id) initWithJDCloudClient:(SslClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"DELETE";
    self.url = @"/sslCert/{certId}";
    return self;
}
@end

/// 下载证书 [MFA enabled]
@implementation  SslDownloadCertExecutor

-(id) initWithJDCloudClient:(SslClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/sslCert/{certId}:download";
    return self;
}
@end

/// 查看证书列表
@implementation  SslDescribeCertsExecutor

-(id) initWithJDCloudClient:(SslClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/sslCert";
    return self;
}
@end

/// 修改证书名称
@implementation  SslUpdateCertNameExecutor

-(id) initWithJDCloudClient:(SslClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/sslCert:updateName";
    return self;
}
@end
